<?php

/**
 * @version     CBE Controller cbe.php 2009.07.26
 * @package		CommunityBuilderEnhanced for Joomla 1.6
 * @subpackage 	Komponente
 * @author 		CBE Entwicklerteam
 * @link		http://www.joomla-cbe.de
 * @copyright 	Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
 * @license     GNU/GPL
 */
 
// Kein direkter Zugriff
defined('_JEXEC') or die('Restricted access');
// Ueberpruefung der Zugangsrechte
$user = & JFactory::getUser();
if (!$user->authorize('com_cbe.manage') && false /* to be removed when acl will be OK*/) {
	JFactory::getApplication()->redirect('index.php', JText::_('ALERTNOTAUTH'));
}
// Importieren der Joomla Controller Bibliothek
jimport('joomla.application.component.controller');
// Setzen der Standart Aufgabe (task)
JRequest::setVar('task', JRequest::getVar('task', 'panel.display'));
// Get an instance of the controller prefixed by Hello
$controller = JController::getInstance('Cbe');
// Durchfueren der Aufgabe (task)
$controller->execute(JRequest::getCmd('task'));
// Umleiten wenn vom Controller gesetzt
$controller->redirect();

?>